function generateArray(n,arr){
    if(n==1 && n >0){
        return [1]
    }else{
        let b = 2*n+1;
        let d = 3*n+1;
        return arr.concat([b,d])
    }
}
let n = 2;
let arr = []
if(n==1){
    arr = [1]
}else{
    whil
}